package com.haojiang.mh.remote.utils

import com.haojiang.mh.remote.ui.dialog.BleSingleDialogFrag


class DialogFragManager {



    companion object {
        val DIALOG_FRAG_BLE = 0x01
        // by lazy是一个线程安全的工作
        val dialogFragmanager by lazy { DialogFragManager() }

//        getFragment(DialogFragmanager::class)
    }

    val bleDialogFrag by lazy { BleSingleDialogFrag() }



    fun getFragment(dialogType: Int) {
        when(dialogType) {
            DIALOG_FRAG_BLE -> {
//                LogUtil.e("童工--")
            }
        }
    }
//    fun getFragment(clazz: Class): Fragment {
//
//        when (clazz::class.java) {
//            CmdUtil.MOTOR -> return motorFrag
//            else -> return motorFrag
//        }
//    }

}